package com.yunhe.abnormal.client.fallback;

import com.yunhe.abnormal.client.MaintenanceClient;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class MaintenanceFallbackFactory implements FallbackFactory<MaintenanceClient> {
    @Override
    public MaintenanceClient create(Throwable cause) {
        return new MaintenanceClient() {
            @Override
            public void deleteByEventId(Long eventId) {
                return;
            }
        };
    }
}
